package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.sql.User;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  app登录接口
* */


public class LoginApi extends AbsRequest<LoginApi.LoginParams, User> {

    public LoginApi(LoginParams loginParams, Listener<User> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getLoginUrl(), loginParams, listener, errorListener, User.class);
    }

    public static class LoginParams extends BaseParams {

        public LoginParams(String username, String password,String mac) {

                put("PHONE", username);
                put("PASSWORD", password);
                put("MAC", mac);

        }
    }


}
